/**
 * @file   1065.cpp
 * @author Shuang Hu <hsmath@ubuntu>
 * @date   Sat Apr  3 22:12:23 2021
 * 
 * @brief  A small program to calculate A+B in 64 bit 
 * 
 * 
 */
#include <iostream>
using namespace std;
int main(){
    long long int A,B,C;
    int trynum;
    bool greater;
    cin>>trynum;
    for(int i=1;i<=trynum;i++){
	scanf("%lld%lld%lld",&A,&B,&C);
	long long int sum=A+B;
	if(A>0&&B>0&&sum<=0){//A+B break!
	    greater=true;
	}else if(A<0&&B<0&&sum>=0){//A+B break!
	    greater=false;
	}else{
	    if(sum>C){
		greater=true;
	    }else{
		greater=false;
	    }
	}
	if(greater==true){
	    cout<<"Case #"<<i<<": true"<<endl;
	}else{
	    cout<<"Case #"<<i<<": false"<<endl;
	}
    }
}
